let BASE_URL = 'https://yzmp.shop.chuahi.cn'
let urlArr = [
  { name: 'changeUserPassword', url: `${BASE_URL}/uri/shop/changeUserPassword` },  //用户修改管理员密码
  { name: 'checkLogin', url: `${BASE_URL}/uri/shop/checkLogin` },  //登录到商家后台
  { name: 'getShop_enter', url: `${BASE_URL}/uri/customer/enter` },  //获取店铺uid
  { name: 'getConstShopUser', url: `${BASE_URL}/uri/shop/getConstShopUser` },  //获取自己的商城的信息（out_user_id）
  { name: 'getShopManageUser', url: `${BASE_URL}/uri/shop/getShopManageUser` },  //获取商品管理人权限
  { name: 'getUserShopInfo', url: `${BASE_URL}/uri/Customer/enter` },//获取个人商城信息
  { name: 'getShopDetail', url: `${BASE_URL}/uri/shop/get` },//获取个人商城数据
  { name: 'getOpenid', url: `${BASE_URL}/uri/Customer/getMiniProjectOpenid` },
  { name: 'getUserInfo', url: `${BASE_URL}/uri/Customer/getCryptUserInfo` },
  { name: 'getOtherShop', url: `${BASE_URL}/uri/shop/getOtherShop` }, // 获取他人店铺
  { name: 'shopbanner', url: `${BASE_URL}/uri/shopbanner/getList` }, // 获取banner列表
  { name: 'getCouponActiveList', url: `${BASE_URL}/uri/coupon/getCouponActiveList` }, // 获取优惠券列表
  { name: 'getCouponDiscount', url: `${BASE_URL}/uri/coupon/getCouponDiscount` }, // 领取优惠

	{ name: 'getCartList', url: `${BASE_URL}/uri/cart/getList`}, //--获取购物车列表
	{ name: 'getCartDelete',  url: `${BASE_URL}/uri/cart/delete`}, //--购物车删除
	{ name: 'cartModNumber',  url: `${BASE_URL}/uri/cart/edit`}, //--购物车更改数量
	{ name: 'cartModOption',  url: `${BASE_URL}/uri/cart/changeOption`}, //--购物车更改规格
  { name: 'getComment', url: `${BASE_URL}/uri/CustomerOrder/commentList` }, // 获取买家评价

  { name: 'goodsSearch', url: `${BASE_URL}/uri/goods/search` }, // 查找商品
  { name: 'groupList', url: `${BASE_URL}/uri/Groupbook/groupList` }, // 拼团商品列表
  { name: 'getYzcShopGoodsList', url: `${BASE_URL}/uri/Yzc/getYzcShopGoodsList` }, // yzc商品列表
  { name: 'goodsGet', url: `${BASE_URL}/uri/goods/get` }, // 商品详情
  { name: 'yzcDetail', url: `${BASE_URL}/uri/Yzc/detail` }, // yzc商品详情
  { name: 'addToFavorite', url: `${BASE_URL}/uri/Collect/addToFavorite` }, // 添加收藏
  { name: 'cancelCollect', url: `${BASE_URL}/uri/Collect/cancelCollect` }, // 取消收藏
  { name: 'goodsComment', url: `${BASE_URL}/uri/Goods/comment` }, // 商品评论
  { name: 'addOrUpdate', url: `${BASE_URL}/uri/cart/addOrUpdate` }, // 添加到购物车
  { name: 'goodsRemind', url: `${BASE_URL}/uri/Home/goodsRemind` }, // 秒杀提醒我
  { name: 'benefit', url: `${BASE_URL}/uri/Customer/benefit` }, // 推荐分成个人信息
  { name: 'benefitLog', url: `${BASE_URL}/uri/Customer/benefitLog` }, // 推荐分成明细
  { name: 'getOrderList', url: `${BASE_URL}/uri/CustomerOrder/getOrderList` }, // 获取订单列表
  { name: 'addFootPrint', url: `${BASE_URL}/uri/Collect/addUserStep` }, // 添加足迹
  { name: 'getFootPrint', url: `${BASE_URL}/uri/Collect/getStepList` }, // 获取足迹列表
  { name: 'delFootPrint', url: `${BASE_URL}/uri/Collect/delUserStep` }, // 删除足迹
  { name: 'getCollectGoods', url: `${BASE_URL}/uri/Collect/getCollectGoodsList` }, // 获取商品收藏列表
  { name: 'getCollectStore', url: `${BASE_URL}/uri/Collect/getCollectStoreList` }, // 获取店铺收藏列表
  { name: 'cancelCollect', url: `${BASE_URL}/uri/Collect/cancelCollect` }, // 取消收藏
  { name: 'getMyCouponList', url: `${BASE_URL}/uri/coupon/getMyCouponDiscountList` }, // 获取我的优惠券列表
  { name: 'delMyCoupon', url: `${BASE_URL}/uri/coupon/delCouponUserGet` }, // 删除我的优惠券
  { name: 'getMyAddress', url: `${BASE_URL}/uri/address/getList` }, // 获取我的收货地址
  { name: 'setDefaultAddress', url: `${BASE_URL}/uri/Address/setDefault` }, // 设置默认收货地址
  { name: 'getMyEditAddress', url: `${BASE_URL}/uri/Address/get` }, // 获取我的修改收货地址信息
  { name: 'editMyAddress', url: `${BASE_URL}/uri/address/edit` }, // 修改我的收货地址
  { name: 'delMyAddress', url: `${BASE_URL}/uri/address/delete` }, // 删除我的收货地址
  { name: 'getZoneList', url: `${BASE_URL}/uri/zone/getList` }, // 获取全国地址
  { name: 'addMyAddress', url: `${BASE_URL}/uri/address/add` }, // 新增我的收货地址
  { name: 'delOrder', url: `${BASE_URL}/uri/CustomerOrder/delOrder` }, // 删除订单
  { name: 'cancelOrder', url: `${BASE_URL}/uri/CustomerOrder/cancelOrder` }, // 取消订单
  { name: 'reminderSlip', url: `${BASE_URL}/uri/CustomerOrder/reminderSlip` }, // 提醒发货
  { name: 'getCancelReasonList', url: `${BASE_URL}/uri/CustomerOrder/getCancelReasonList` }, // 取消订单
  { name: 'setCustomerDelay', url: `${BASE_URL}/uri/CustomerOrder/setCustomerDelay` }, // 延长收货
  { name: 'orderReceived', url: `${BASE_URL}/uri/CustomerOrder/orderReceived` }, // 确认收货
  { name: 'commentGoodsOrder', url: `${BASE_URL}/uri/CustomerOrder/orderDetail` }, // 获取订单商品列表
  { name: 'submitGoodsComment', url: `${BASE_URL}/uri/CustomerOrder/orderComment` }, // 提交发表评价

  { name: 'orderDetail', url: `${BASE_URL}/uri/CustomerOrder/orderDetail` }, // 退款顶部商品详情
  { name: 'fileupload', url: `${BASE_URL}/uri/fileupload/upload` }, // 上传文件
  { name: 'getOrderReturnReasonList', url: `${BASE_URL}/uri/CustomerOrder/getOrderReturnReasonList` }, // 退款理由列表
  { name: 'refundOrder', url: `${BASE_URL}/uri/CustomerOrder/refundOrder` }, // 顾客申请退款
  { name: 'undoRefund', url: `${BASE_URL}/uri/CustomerOrder/undoRefund` }, // 顾客撤销申请退款
  { name: 'getRefundInfo', url: `${BASE_URL}/uri/CustomerOrder/getRefundInfo` }, // 顾客获取申请退款信息
  { name: 'getDefault', url: `${BASE_URL}/uri/address/getDefault` }, // 获取默认收货地址
  { name: 'confirmOrder', url: `${BASE_URL}/uri/Customerorder/confirmOrder` }, // 确认订单
  { name: 'doPayOrder', url: `${BASE_URL}/uri/CustomerOrder/doPayOrder` }, // 生成订单
  { name: 'addressGet', url: `${BASE_URL}/uri/address/get` }, // 获取地址信息
  { name: 'confirmYzcOrder', url: `${BASE_URL}/uri/Yzc/confirmYzcOrder` }, // 生成yzc订单
  { name: 'convertOrder', url: `${BASE_URL}/uri/Yzc/convertOrder` }, // 支付yzc订单
  { name: 'createImage', url: `${BASE_URL}/uri/goods/createImage` }, // 生成分享海报
  { name: 'shopEdit', url: `${BASE_URL}/uri/shop/edit` }, // 编辑自己的店铺
  { name: 'addBatch', url: `${BASE_URL}/uri/shopbanner/addBatch` }, // 批量编辑banner
  { name: 'personalCenterStatistics', url: `${BASE_URL}/uri/CustomerOrder/personalCenterStatistics` }, // 个人中心订单类型统计
  { name: 'productListGet', url: `${BASE_URL}/uri/Products/productListGet` }, // 商品管理的商品列表
  { name: 'productGoodsDel', url: `${BASE_URL}/uri/Products/productGoodsDel` }, // 商品管理删除商品
  { name: 'productGoodsOnSale', url: `${BASE_URL}/uri/Products/productGoodsOnSale` }, // 商品管理上/下架商品
  { name: 'categoryGetAll', url: `${BASE_URL}/uri/Category/getAll` }, // 获取店铺所有商品分类
  { name: 'categoryAdd', url: `${BASE_URL}/uri/Category/add` }, // 添加商品分类
  { name: 'productGoodsChangeCategory', url: `${BASE_URL}/uri/Products/productGoodsChangeCategory` }, // 更换商品分类
  { name: 'categoryActive', url: `${BASE_URL}/uri/Category/active` }, // 启用、停用分类
  { name: 'categoryEdit', url: `${BASE_URL}/uri/Category/edit` }, // 启用、停用分类
  { name: 'orderListGet', url: `${BASE_URL}/uri/Sellerorder/getOrderList` }, // 商家获取订单列表
  { name: 'sellerOrderDetail', url: `${BASE_URL}/uri/Sellerorder/orderDetail` }, // 商家订单详情
  { name: 'sellerorderDelOrder', url: `${BASE_URL}/uri/Sellerorder/delOrder` }, // 商家删除订单
  { name: 'agreeReturnOrder', url: `${BASE_URL}/uri/SellerOrder/agreeReturnOrder` }, // 商家删除订单
  { name: 'getSellerReasonList', url: `${BASE_URL}/uri/Sellerorder/getSellerReasonList` }, // 商家拒绝退款理由
  { name: 'refuseReturnOrder', url: `${BASE_URL}/uri/Sellerorder/refuseReturnOrder` }, // 商家拒绝退款理由
  { name: 'setShareUser', url: `${BASE_URL}/uri/auth/setShareUser` }, // 绑定分享者
  { name: 'buyWithdraw', url: `${BASE_URL}/uri/withdraw/confirmWithdraw` }, //--买家分成提现，确认提现金额
	{ name: 'buyWithdrawApply', url: `${BASE_URL}/uri/withdraw/applyWithdraw` }, //--买家分成提现，确认提现申请
  { name: 'getWithdrawList', url: `${BASE_URL}/uri/withdraw/getWithdrawList` }, //--分成提现记录

	{ name: 'buyOrderPayment', url: `${BASE_URL}/uri/CustomerOrder/orderPayment` }, //--支付订单

	{ name: 'getCouponActiveList', url: `${BASE_URL}/uri/coupon/getCouponActiveList` }, // 获取优惠券列表
  { name: 'getSysCategory', url: `${BASE_URL}/uri/Goods/getSysCategory` }, // 获取系统类目
	{ name: 'setCouponActive', url: `${BASE_URL}/uri/coupon/setCouponActive` }, // 生成优惠券
	{ name: 'delCouponActive', url: `${BASE_URL}/uri/coupon/delCouponActive` }, // 删除优惠券活动

  { name: 'goodsAdd', url: `${BASE_URL}/uri/goods/add` }, // 添加商品
  { name: 'getGoodsDetail', url: `${BASE_URL}/uri/Goods/sellerget` }, // 商家获取商品详情
  { name: 'goodsEdit', url: `${BASE_URL}/uri/goods/edit` }, // 商家编辑商品信息
  { name: 'productOnSale', url: `${BASE_URL}/uri/Products/productGoodsOnSale` }, // 商家上架/下架商品
  { name: 'productDel', url: `${BASE_URL}/uri/Products/productGoodsDel` }, // 商家删除商品
	{ name: 'getTradingMoney', url: `${BASE_URL}/uri/Earning/getTradingMoney` }, // 商家获取我的收入
	{ name: 'getTradingList', url: `${BASE_URL}/uri/Earning/getTradingList` }, // 商家获取交易中列表
	{ name: 'getWithdrawMoney', url: `${BASE_URL}/uri/Earning/getWithdrawMoney` }, // 商家获取可提现金额
	{ name: 'getSupplyList', url: `${BASE_URL}/uri/Earning/getSupplyList` }, // 商家获取结算中列表
	{ name: 'withdrawalList', url: `${BASE_URL}/uri/Earning/withdrawalList` }, // 商家获取已提现列表
	{ name: 'getBank', url: `${BASE_URL}/uri/Earning/getBank` }, // 商家获取银行卡信息
	{ name: 'addOrEditBank', url: `${BASE_URL}/uri/Earning/addOrEditBank` }, // 商家绑定银行卡
	{ name: 'sendCode', url: `${BASE_URL}/uri/Earning/sendCode` }, // 商家获取验证码
	{ name: 'doWithdrawMoney', url: `${BASE_URL}/uri/Earning/doWithdrawMoney`}, // 商家确认提现

  { name: 'getCommentList', url: `${BASE_URL}/uri/Sellerorder/sellerCommentList` }, // 商家获取顾客评论列表
	{ name: 'sellerOrderComment', url: `${BASE_URL}/uri/Sellerorder/sellerOrderComment` }, // 商家回复评论

	{ name: 'buyViewExpress', url: `${BASE_URL}/uri/CustomerOrder/viewExpress` }, //--买家，查看物流
  { name: 'editExpressSn', url: `${BASE_URL}/uri/Sellerorder/upOrderExpress` }, //--卖家修改物流单号 
	{ name: 'getExpressList', url: `${BASE_URL}/uri/Sellerorder/getExpressList` }, // 获取快递列表
	{ name: 'setExpress', url: `${BASE_URL}/uri/Sellerorder/setExpress` }, // 商家手动添加其他快递公司
	{ name: 'orderSendOut', url: `${BASE_URL}/uri/Sellerorder/orderSendOut` }, // 商家确认发货
]

let getUrl = (arg) => {
  for (var i = 0, len = urlArr.length; i < len; i++) {
    if (urlArr[i].name == arg) {
      return urlArr[i].url
    }
  }
}

module.exports = {
  url: getUrl
}
